package study.day5.t11;

public class GoldFish extends Fish{
    public GoldFish() {

    }

    public GoldFish(String type) {
        this.type = type;
    }

    @Override
    public void eat() {
        System.out.println("金鱼在吃东西");
    }

    @Override
    public void show() {
        System.out.println("类型是："+this.type);
    }

    @Override
    public void swim() {
        System.out.println("金鱼在游泳");
    }
}
